package com.ym.b2b.ws.service;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;

import org.apache.cxf.annotations.WSDLDocumentation;

@WebService
public interface ForERPService {
	
	@WebMethod
	@WSDLDocumentation("获取订单列表,默认获取已确认,待审核的订单列表")
	public String getOrderList(@WebParam(name = "beginDate") String beginDate,
			@WebParam(name = "endDate") String endDate,
			@WebParam(name = "status") String status/*,
			@WebParam(name = "page") String page,
			@WebParam(name = "pageSize") String pageSize*/);
	
	@WebMethod
	@WSDLDocumentation("更新订单状态")
	public String updateOrder(@WebParam(name = "orderCode") String orderCode,
			@WebParam(name = "orderCodeErp") String orderCodeErp,
			@WebParam(name = "status") String status,
			@WebParam(name = "oos") String oos);
	
	
	@WebMethod
	@WSDLDocumentation("ERP接收到订单信息后回传方法,确认订单信息已上传")
	public String checkFlag(@WebParam(name = "orderCode") String orderCode);
	
	@WebMethod
	@WSDLDocumentation("添加采购商")
	public String addBuyer(@WebParam(name = "jsonString") String jsonString);
}
